package br.usp.poli.util;

import java.util.TimeZone;
import java.util.SimpleTimeZone;

public class ItsInitializer {
	private static boolean s_initialized = false;

	private ItsInitializer() {
	}

	public static synchronized void initialize() {
		if (!s_initialized) {
			// Modifies default time zone, disables Daylight Saving Time.
			TimeZone l_defaultTimeZone = TimeZone.getDefault();
			int l_rawOffset = l_defaultTimeZone.getRawOffset();
			String l_id = l_defaultTimeZone.getID();
			SimpleTimeZone l_simpleTimeZone = new SimpleTimeZone(l_rawOffset,
					l_id, 0, 0, 0, 0, 0, 0, 0, 0);
			TimeZone.setDefault(l_simpleTimeZone);
			s_initialized = true;
		}
	}
}